<?php
	if($_POST)
	{	
		require_once 'classes/Conexao.php';
		$conn = new Conexao();
		
		require_once "classes/Sessao.php";
		$sessao = new Sessao();
		
		$sessao->SetEmail($_POST['email']);
		$sessao->SetSenha($_POST['senha']);
		//$sessao->SetIp($_SERVER['REMOTE_ADDR']);
		$sessao->Autenticar();
	}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html lang="en-US" dir="ltr" xmlns="http://www.w3.org/1999/xhtml" style="">
<head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
    <meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible">
    <meta content="width=device-width, initial-scale=1.0" name="viewport">
    <title>Specialité Coffee - Sistema Administrativo</title>
    <link media="screen" type="text/css" href="css/1140.css" rel="stylesheet">
    </link>
    <link media="screen" type="text/css" href="css/styles.css" rel="stylesheet">
    </link>
    <!--<link media="screen" type="text/css" href="_themes/default.css" rel="stylesheet">
    </link>-->
    <script src="js/css3-mediaqueries.js" type="text/javascript"></script>
</head>

<body class="texture">
    <div class="container">
		<div class="row">
			<div class="panel-wrapper panel-login">
				<div class="panel">
					<div class="title">
						<h4>Login</h4>
					</div>
					<div class="content">
						<form action="" method="post">
							<div>
								<label for="email">E-mail:</label>
								<input type="text" id="email" value="wellington@agenciapenta.com.br" name="email">
							</div>
							<div>
								<label for="senha">Senha:</label> 
                                <input type="password" id="senha" value="penta12345" name="senha">
							</div>
							<div>
								<input type="submit" value="Logar" class="button-red submit" />
							</div>
						</form>
					</div>
				</div>
				<div class="shadow"></div>
			</div>
		</div>
    </div>
</body>
</html>